import request from '@/utils/request';
export async function getCustomMessage(params) {
  return request(`/api/custom/all/`, { params });
}
export async function getFn(params) {
  return request(`/api/flow/queryMethod`, { params });
}
export async function queryFtpFileType(params) {
  return request(`/api/queryFtpFileType`, { params });
}

export async function getFlowAll(params) {
  return request(`/api/flow/all`, { params });
}
export async function deleteFlow(params) {
  return request(`/api/flow/delete`, {
    method: 'POST',
    data: params,
  });
}
export async function addFlow(params) {
  return request(`/api/flow/add`, {
    method: 'POST',
    data: params,
  });
}

export async function updateFlow(params) {
  return request(`/api/flow/update`, {
    method: 'POST',
    data: params,
  });
}

export async function getFlowSingle(params) {
  return request(` /api/flow/single`, { params });
}
